package ch.zbw.sysventory.server.repository;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import ch.zbw.sysventory.server.model.Computer;
import ch.zbw.sysventory.server.model.ComputerScan;
import ch.zbw.sysventory.server.model.ComputerScanResult;

@Repository
public interface ComputerScanResultRepository extends JpaRepository<ComputerScanResult, Long>, JpaSpecificationExecutor<ComputerScanResult> {

	public abstract List<ComputerScanResult> findByComputerScan(ComputerScan computerScan);

	public abstract List<ComputerScanResult> findByComputer(Computer computer);

	public abstract List<ComputerScanResult> findByComputerOrderByTimeStampDesc(Computer computer);

}
